﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Wilke.SharePoint.Tools
{
    public partial class TextEditForm : Form
    {
        private string originalText = null;

        #region Constuction

        public TextEditForm(string text)
        {
            InitializeComponent();
            originalText = text;
            textBoxText.Text = text;
        }

        #endregion

        #region Properties  

        public new string Text { get; set; }

        #endregion

        private void TextEdit_Load(object sender, EventArgs e)
        {

        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.Text = textBoxText.Text;
            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Text = originalText;
            this.Close();
        }
    }
}
